:host {
    // $color-customer-1: #43af7d;
    // $color-customer-2: #43af7d;
    // $color-risk-1: #5ea8d6;
    // $color-risk-2: #69baec;
    // $color-marketing-1: #9978d6;
    // $color-marketing-2: #a984ec;
    // $color-work-1: #d5a441;
    // $color-work-2: #dfac45;
    $color-customer-1: #FF6B68;
    $color-customer-2: #FF6B68;
    $color-marketing-1: #FF6B68;
    $color-marketing-2: #FF6B68;
    $color-work-1: #5E99F9;
    $color-work-2: #5E99F9;
    $color-risk-1: #5FB175;
    $color-risk-2: #5FB175;
    &.customer {
        .left-item,
        .middle-item {
            background: $color-customer-1;
        }
        .right-item {
            background: $color-customer-2;
        }
    }
    &.work {
        .left-item,
        .middle-item {
            background: $color-work-1;
        }
        .right-item {
            background: $color-work-2;
        }
    }
    &.marketing {
        .left-item,
        .middle-item {
            background: $color-marketing-1;
        }
        .right-item {
            background: $color-marketing-2;
        }
    }
    &.risk {
        .left-item,
        .middle-item {
            background: $color-risk-1;
        }
        .right-item {
            background: $color-risk-2;
        }
    }
}

.container {
    border-radius: 20px;
    // box-shadow: -2px 5px 5px gray;
    overflow: hidden;
    margin: 5px;
    margin-bottom: 10px;
    position: relative;
}

.new-item {
    height: 120px;
    color: #fffff3;
    position: relative;
    .new-item-badge {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        font-size: 12px;
    }
    .left-item {
        width: 10px;
    }
    .middle-item {
        padding: 10px;
        font-size: 10px;
        border-right: 1px dashed white;
        .title {
            font-weight: bold;
            font-size: 12px;
        }
    }
    .right-item {
        flex: 1;
        padding: 5px;
        .title {
            font-weight: bold;
            font-size: 12px;
            .datatitle {
                width: 89px;
                height: 27px;
                display: inline-block;
                opacity: 1;
                border-radius: 20px 20px 20px 20px;
                color: white;
                border: 1px solid #FFFFFF;
                font-size: 12px;
                margin-right: 7%;
                padding: 1px 3px 1px 3px;
                line-height: 24px;
                text-align: center;
            }
            .datatime {
                font-size: 12px;
            }
        }
        .content {
            font-size: 14px;
            margin-top: 2%;
        }
    }
    .title {
        height: 35px;
        font-weight: 400;
        font-size: 14px;
        line-height: 35px;
    }
    .sub-title {
        font-weight: 300;
        font-size: 10px;
    }
    .title,
    .sub-title {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        word-break: break-all;
    }
}

.messagebt {
    display: inline-block;
    width: 94px;
    height: 25px;
    line-height: 22px;
    border-radius: 10px;
    padding: 2%;
    font-size: 14px;
    text-align: center;
    border: 1px solid gainsboro;
}
